package com.itheima.apis.note;


import com.itheima.apis.note.fallback.INoteClientFallBack;
import com.itheima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "note-service",fallback = INoteClientFallBack.class)
public interface INoteClient {
    @GetMapping("/api/v1/note/book/count")
    ResponseResult countNotesByBookForUser(@RequestParam Integer userId);
}
